package com.meituan.sdk.model.ddzh.yuding.refundauditresult;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 取消预订审核结果回调
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzh/yuding/refundauditresult",
    businessId = 58,
    apiVersion = "10004",
    apiName = "refundauditresult",
    needAuth = true
)
public class RefundauditresultRequest implements MeituanRequest<RefundauditresultResponse> {
    /**
    * <p data-diff-id="ct-diff-id-df688932-117b-432c-a576-b3a536b052a2">审核结果，2-审核通过，3-审核未通过</p>
    */
    @NotNull(message = "auditResult不能为空")
    @SerializedName("auditResult")
    private Integer auditResult;
    /**
    * <p data-diff-id="ct-diff-id-c57f983a-fe0a-406a-ae08-bbfe4870bf15">订单ID</p>
    */
    @NotBlank(message = "orderId不能为空")
    @SerializedName("orderId")
    private String orderId;
    /**
    * <p data-diff-id="ct-diff-id-50a42262-88f1-41a4-b07b-1978624a9caa">生活服务行业新增字段，其他行业不传。</p><p data-diff-id="ct-diff-id-a7567de2-8682-4d22-835b-465467bea7c4">交易类型，枚举值：1-预订，2-团单（团购后预约）</p><p data-diff-id="ct-diff-id-eb5d0c55-e550-4029-9f4b-360d55a3332b">商家根据此属性字段识别交易类型，预订业务该字段非必传，团购后预约业务必传</p>
    */
    @SerializedName("type")
    private Integer type;

    public Integer getAuditResult() {
        return auditResult;
    }
    public void setAuditResult(Integer auditResult) {
        this.auditResult = auditResult;
    }
    public String getOrderId() {
        return orderId;
    }
    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
    public Integer getType() {
        return type;
    }
    public void setType(Integer type) {
        this.type = type;
    }


    @Override
    public MeituanResponse<RefundauditresultResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<RefundauditresultResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "RefundauditresultRequest{" + "auditResult=" + auditResult + "," + "orderId=" + orderId + "," + "type=" + type + "}";
    }
}
